package com.ptszyxx.popose.module.main.user.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.ptszyxx.popose.R;
import com.ptszyxx.popose.databinding.ItemUserGuardBinding;
import com.ysg.http.data.entity.user.GuardEntity;

public class UserGuardAdapter extends BaseQuickAdapter<GuardEntity, BaseDataBindingHolder<ItemUserGuardBinding>> {

    public UserGuardAdapter() {
        super(R.layout.item_user_guard);
    }

    @Override
    protected void convert(BaseDataBindingHolder<ItemUserGuardBinding> holder, GuardEntity item) {
        ItemUserGuardBinding binding = holder.getDataBinding();
        if (binding != null) {
            binding.setEntity(item);
            binding.setPosition(holder.getBindingAdapterPosition());
            binding.executePendingBindings();

        }
    }









}
